package ModelLayer;

import java.util.ArrayList;

/**
*
* @author DM79 group 5
* @version 2012.25.10
*/

public class Customer {
	 //instance variables 
    private String customerId;
    private String name;
    private String address;
    private int zipcode;
    private String city;
    private String phoneno;
    private int type;
    private ArrayList<SalesOrder> salesOrderList;
    
    public Customer(){
    	salesOrderList = new ArrayList<SalesOrder>();
    }
    public Customer(String customerId){
    	this.customerId = customerId;
    	salesOrderList = new ArrayList<SalesOrder>();
    }
    public Customer(String customerid,String name,String address,int zipcode,String city,String phoneno,int type)
    {
        this.customerId = customerid;
        this.name = name;
        this.address = address;
        this.zipcode = zipcode;
        this.city = city;
        this.phoneno = phoneno;
        this.type = type;
        salesOrderList = new ArrayList<SalesOrder>();
    }
    public ArrayList<SalesOrder> getSalesOrderList() {
		return salesOrderList;
	}
	public void setSalesOrderList(ArrayList<SalesOrder> salesOrderList) {
		this.salesOrderList = salesOrderList;
	}
	//set methods
    public void setCustomerId(String customerId)
    {
        this.customerId = customerId;
    }
    public void setName(String name){
        this.name = name;
    }
    public void setAddress(String address){
        this.address = address;
    }
    public void setZipCode(int zipcode){
        this.zipcode = zipcode;
    }
    public void setCity(String city)
    {
        this.city = city;
    }
    public void setPhoneNo(String phoneno)
    {
        this.phoneno = phoneno;
    }
    public void setType(int type)
    {
        this.type = type;
    }
    //get method
    public String getCustomerId()
    {
        return customerId;
    }
    public String getName()
    {
        return name;
    }
    public String getAddress()
    {
        return address;
    }
    public int getZipCode()
    {
        return zipcode;
    }
    public String getCity()
    {
        return city;
    }
    public String getPhoneNo()
    {
        return phoneno;
    }
    public int getType()
    {
        return type;
    }
}
    
   